<?php
declare (strict_types = 1);

namespace app\index\model;

use think\facade\Cache;
use think\Model;

/**
 * @mixin \think\Model
 */
class GoodsPropValue extends Model
{
    public static function getPropValue()
    {
        $model=self::field(true)->order('sort_order');

        $arr=[];
        $result=$model->select()->toArray();
        foreach ($result as $v){
            $arr[$v['vid']]=$v['prop_value'];
        }
        Cache::set('arr',$arr,600);
        return $arr;



    }
    //
}

